﻿using System;

class TrailingZeros
{
    static void Main()
    {
        int nFactorial;

        Console.WriteLine("Type a facorial:");
        bool isNumberValid = int.TryParse(Console.ReadLine(), out nFactorial);

        if (isNumberValid)
        {
            int dividend=nFactorial;
            int divisor=5;
            int result=0;
            while (true)
            {
                if (dividend<divisor)
                {
                    break;
                }
                result += dividend / divisor;
                divisor *= 5;
            }
            Console.WriteLine("There is {0} zeros in {1}!", result,nFactorial);
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
    
}